package com.code.softeem.finaltest;

public class People {
    private int id;
    private String name;
    //如果定义一个常量,首先添加final修饰符,然后常量名要进行大写,必须对其进行赋值操作
    private final int AGE = 18;


    public People() {
    }

    public People(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public void learn(){
        System.out.println("大家都喜欢学习");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAGE() {
        return AGE;
    }

}
